 = simple_form_for(@part, html: {class: 'form-vertical', novalidate: true}, wrapper: :vertical_form) do |o|
    .row
        .col-md-12.hidden
	        = o.input :part_style_id, input_html: { value: params[:id] }
	    .col-md-12
	        = o.input :code, label: '编号'
	        = o.input :name, label: '名称'
	        = o.input :purchase_price, label: '采购价'
	        = o.input :sales_price, label: '销售价'
        	= o.input :unit, label: '单位', collection: ["只", "盒", "件", "张", "桶", "米", "片", "瓶", "把", "幅", "块", "升", "根", "公斤", "包", "个", "罐", "对", "箱", "台", "斤", "车", "支", "双", "套", "条", "卷", "提", "颗", "次", "付", "面", "辆"]
        	= o.input :car_mo, label: '车型'
        	= o.input :brand, label: '品牌'
        	= o.input :origin, label: '产地'
        	= o.input :note, label: '备注'

            = o.button :submit, "保存", :class => 'btn-success btn-xs'